//
//  OSRecommendUserCell.m
//  百思不得姐
//
//  Created by PushMeBaby on 16/2/22.
//  Copyright © 2016年 CoderC. All rights reserved.
//

#import "OSRecommendUserCell.h"
#import "OSRecommendUser.h"

#import <SDImageCache.h>
@interface OSRecommendUserCell ()

@property (weak, nonatomic) IBOutlet UIImageView *headerImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *fansCountLabel;

@end

@implementation OSRecommendUserCell

- (void)awakeFromNib {
    // Initialization code
}

-(void)setUser:(OSRecommendUser *)user{
    _user = user;
    
    self.fansCountLabel.text = [NSString stringWithFormat:@"%ld",user.fans_count];
    self.nameLabel.text = user.screen_name;
    [self.headerImageView sd_setImageWithURL:[NSURL URLWithString:user.header] placeholderImage:[UIImage imageNamed:@"defaultUserIcon"]];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
